package com.sghd.candy.module.account.service;

import com.sghd.candy.module.account.manager.Account;
import com.sghd.candy.module.player.manager.Player;

/**
 * @author frank
 * @date 2018-10-17 9:59
 * @desc
 **/
public interface AccountService {
    Account load(long id);

    Account create(String uid);

    Account loadByUid(String uid);

    void login(Account account, String ip, boolean guest, int serverId);

    /**
     * 封号
     * @param playerId
     */
    void block(long playerId);
    /**
     * 解封
     * @param playerId
     */
    void deblock(long playerId);

    /**
     * 升级账号
     * @param account
     */
    void upgrade(Account account);

    void logout(Account account, Player player);
}
